package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 行道树记录表
 *
 * @author code-generate
 * @date 2022-01-05
 */
@Data
@DbTable(tableName = "t_gre_tree_record")
public class GreTreeRecord extends BaseEntity {
        /**
     * tree id
     */
    @DbTableField(columnName = "c_tree_int_id", dbType = DbTypeEnum.INTEGER)
    public Integer treeIntId ;

    /**
     * UUID
     */
    @DbTableField(columnName = "c_tree_id", dbType = DbTypeEnum.CHAR)
    public Character treeId ;

    /**
     * 编号
     */
    @DbTableField(columnName = "c_code", dbType = DbTypeEnum.VARCHAR)
    public String code ;

    /**
     * 中文名
     */
    @DbTableField(columnName = "c_name", dbType = DbTypeEnum.VARCHAR)
    public String name ;

    /**
     * 拉丁名
     */
    @DbTableField(columnName = "c_name_latin", dbType = DbTypeEnum.VARCHAR)
    public String nameLatin ;

    /**
     * 绿地Id
     */
    @DbTableField(columnName = "c_land_id", dbType = DbTypeEnum.INTEGER)
    public Integer landId ;

    /**
     * 树高（M）
     */
    @DbTableField(columnName = "c_tree_height", dbType = DbTypeEnum.DOUBLE)
    public Double treeHeight ;

    /**
     * 树宽（M） 范围
     */
    @DbTableField(columnName = "c_tree_width", dbType = DbTypeEnum.VARCHAR)
    public String treeWidth ;

    /**
     * 树种
     */
    @DbTableField(columnName = "c_tree_kind", dbType = DbTypeEnum.VARCHAR)
    public String treeKind ;

    /**
     * 属性
     */
    @DbTableField(columnName = "c_tree_attr", dbType = DbTypeEnum.VARCHAR)
    public String treeAttr ;

    /**
     * 类别ID
     */
    @DbTableField(columnName = "c_type", dbType = DbTypeEnum.VARCHAR)
    public String type ;

    /**
     * 类别
     */
    @DbTableField(columnName = "c_type_name", dbType = DbTypeEnum.VARCHAR)
    public String typeName ;

    /**
     * 地点描述
     */
    @DbTableField(columnName = "c_address", dbType = DbTypeEnum.VARCHAR)
    public String address ;

    /**
     * 所属路段
     */
    @DbTableField(columnName = "c_alone_load", dbType = DbTypeEnum.VARCHAR)
    public String aloneLoad ;

    /**
     * 街道Id
     */
    @DbTableField(columnName = "c_street_id", dbType = DbTypeEnum.VARCHAR)
    public String streetId ;

    /**
     * 街道名称
     */
    @DbTableField(columnName = "c_street_name", dbType = DbTypeEnum.VARCHAR)
    public String streetName ;

    /**
     * 区域ID
     */
    @DbTableField(columnName = "c_distract_id", dbType = DbTypeEnum.VARCHAR)
    public String distractId ;

    /**
     * 区域
     */
    @DbTableField(columnName = "c_distract_name", dbType = DbTypeEnum.VARCHAR)
    public String distractName ;

    /**
     * 备注
     */
    @DbTableField(columnName = "c_desc", dbType = DbTypeEnum.VARCHAR)
    public String desc ;

    /**
     * 普查日期
     */
    @DbTableField(columnName = "c_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime date ;

    /**
     * 坐标X
     */
    @DbTableField(columnName = "c_lng", dbType = DbTypeEnum.DOUBLE)
    public Double lng ;

    /**
     * 坐标Y
     */
    @DbTableField(columnName = "c_lat", dbType = DbTypeEnum.DOUBLE)
    public Double lat ;

    /**
     * 版本 1 当前 0 历史
     */
    @DbTableField(columnName = "c_is_new", dbType = DbTypeEnum.INTEGER)
    public Integer isNew ;

    /**
     * 胸径(m)
     */
    @DbTableField(columnName = "c_growth", dbType = DbTypeEnum.VARCHAR)
    public String growth ;

    /**
     * 审核状态
     */
    @DbTableField(columnName = "c_state", dbType = DbTypeEnum.BIT)
    public Boolean state ;


}
